/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package com.alien.admin.modules.publisher.service.dto;

import com.alien.admin.modules.deploy.domain.DeployRec;
import com.alien.admin.modules.deploy.service.dto.DeployRecDto;
import lombok.Data;
import java.sql.Timestamp;
import java.io.Serializable;
import java.util.Set;

/**
* @website https://el-admin.vip
* @description /
* @author zhouseyi
* @date 2021-11-11
**/
@Data
public class PublishDeployDto implements Serializable {

    /** 主键 */
    private Integer id;

    /** 流程id */
    private Long flowId;

    private Long flowNum;

    /** 环境 */
    private String env;

    /** 部署时间 */
    private Timestamp publishTime;

    /** 阶段：0:合并分支 1:服务部署 2:分支回滚 3.服务回滚 4.结束 */
    private Integer stage;

    /** 状态：0:进行中 1:回滚 2:成功 3.失败 */
    private Integer status;

    /** 部署人id */
    private Long operatorId;

    /** 部署人姓名 */
    private String operatorName;

    /** 发布流程 */
    private String title;

    /** 服務部署流程 */
    private Set<DeployRecDto> deployRecs;
}